
<?php $mainbar = 'main';
 $pageId="page-story";
?>
@extends('ios.pageIndex')

@section('page-content')
<div class="content-padded m-story">
	<h2 class="text-center">{{$story->title}}</h2>
	<h4 class="text-center">{{$story->subtitle}}</h4>
	
	<div class="m-story-content">
		{{$story->content}}
	</div>
	
	<div class="swiper-container swiper-init" data-prev-button='.swiper-button-prev'
		data-next-button='.swiper-button-next'>
	    <div class="swiper-wrapper">
	      @foreach($stories as $s)
	      	<div class="swiper-slide {{$s->id == $story->id ? 'active':''}}">
	      	 	<a href="{{URL::to('/stories')}}?id={{$s->id}}" class="external">
			  		<h3 class="text-center">{{$s->title}}</h5>
			  		<img src="{{Images::url($s->image,600,720)}}" />
			  		<h4 class="text-center">{{$s->subtitle}}</h6>
		  		</a>
		    </div>
		  @endforeach
	    </div>
	    <div class="swiper-button-prev"><i class="icon2 icon-arrow-left"></i></div>
    	<div class="swiper-button-next"><i class="icon2 icon-arrow-right"></i></div>
	</div>
</div>
@stop

@section('script')
{{ HTML::script('assets/js/ueditor/ueditor.parse.min.js') }}
<script type="text/javascript">
<!--
uParse(".m-story-content",{
	rootPath:"{{URL::to('/assets/js/ueditor')}}"
})
//-->
</script>
@stop
